<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>滚动提示</title>
    <link rel="stylesheet" href="../public.css">
    <style>
        .box {
            width: 100;
            height: 100px;
            margin: 20px auto;
            overflow: auto;
            border: 1px solid black;
        }

        .back {
            background: radial-gradient(at top, rgba(0, 0, 0, .2), transparent 70%) no-repeat;
            background-size: 100% 15px;
        }

        .back1 {
            background: linear-gradient(white 30%, transparent),
                radial-gradient(at 50% 0, rgba(0, 0, 0, .2),
                    transparent 70%);
            background-repeat: no-repeat;
            background-size: 100% 50px, 100% 15px;
            background-attachment: local, scroll;
        }
    </style>
</head>

<body>
    <div class="content">
        <h1>滚动提示</h1>
        <div class="box back">
            <ul>
                <li>1</li>
                <li>2</li>
                <li>3</li>
                <li>4</li>
                <li>5</li>
                <li>6</li>
                <li>7</li>
                <li>8</li>
                <li>9</li>
                <li>10</li>
            </ul>
        </div>
        <div class="box back1">
            <ul>
                <li>1</li>
                <li>2</li>
                <li>3</li>
                <li>4</li>
                <li>5</li>
                <li>6</li>
                <li>7</li>
                <li>8</li>
                <li>9</li>
                <li>10</li>
            </ul>
        </div>
    </div>
</body>

</html>